%{-- partial template that is used by the loginControl taglib	--}%
<g:form controller="user" action="authenticate">
	<fieldset class="s_column">
		<div>
			<label for="login">User</label>
			<g:textField name="login" />
		</div>
		<div>
			<label for="password">Passwort</label>
			<g:passwordField name="password" />
			
				<g:if test="${params.targetUri}">
					<g:hiddenField name="targetUri" value="${params.targetUri}"/>
				</g:if>
				<g:else>
					<g:hiddenField name="targetUri" value="${(request.forwardURI - request.contextPath)}"/>
				</g:else>
		</div>
		<g:submitButton id="generalButton" name="authenticate" value="Login"/>
	</fieldset>
</g:form>